<%-- 
    Document   : CadastrarDespesas
    Created on : 15/09/2008, 15:28:26
    Author     : 2006244090114
--%>
<%@page import="java.util.*,persistencia.*, modelo.*"contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="gastozero.css" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>TELA RECEITAS</title>
    </head>
    <body  class="body" background="imagemDeFundo.jpg">
        <center> <font size="3" face="arial" > <h1>Gasto Zero</h1></font></center><br/><br/><br/>
        <div class="style1" >
            <center>
                <font ><a href="Menu.jsp" class="texto" >MENU</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
                <font ><a href="ServletReceita?acao=listar" class="texto" >EDITAR</a></font>&nbsp;&nbsp;&nbsp;&nbsp;               
                <font  class="texto"><a class="texto"  href="index.jsp">SAIR >></a></font>&nbsp;&nbsp;&nbsp;&nbsp;               
            </center>
        </div>        
        <div class="style3">
            
            <form action="ServletReceita?acao=salvar" method="POST">
                <center>                
                    <h3>Cadastro Das Receitas</h3>                  
                    <%
            ExercicioDAO exercicioDAO = new ExercicioDAO();
            Vector exer = exercicioDAO.getExercicio();
            Iterator exercicio = exer.iterator();
            // no servlet isso será um request.setAttribute... 
            pageContext.setAttribute("exercicio", exercicio);
                    %>                   
                    <h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exercicio:&nbsp;                   
                    <select name="exercicio" id="id_exercicio">
                        <c:forEach var="exercicio"   items="${exercicio}">
                            <option value="${exercicio.id_exercicio}">
                                ${exercicio.mes}/
                                ${exercicio.ano}
                            </option>
                        </c:forEach>
                    </select> 
                    <h3> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Descricao: <input type="text" name="descricao" value="" />(receita)</h3>
                    <h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Data: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="data" value="" />&nbsp;&nbsp;<font size="2">exemplo(dd/MM/yyyy)</font></h3>
                    <h3>Valor: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="valor" value="" /></h3>
                    <input type="submit" value="Enviar" />
                    <input type="reset" value="Limpar" />   
                </center>
            </form>
        </div> 
    </body>
</html>